package com.lagou.edu.user.remote;

import com.lagou.edu.common.result.ResponseDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 验证码
 */
@FeignClient(name = "edu-user-boot", path = "/user/vfcode")
public interface VerificationCodeRemoteService {

    /**
     * 发送验证码
     */
    @RequestMapping("/sendCode")
    ResponseDTO sendCode(@RequestParam("telephone") String telephone);

    /**
     * 判断验证码是否正确
     */
    @RequestMapping("/checkCode")
    ResponseDTO checkCode(@RequestParam("telephone") String telephone,
                          @RequestParam("code") String code);

}
